//-----------------Sonic CD CrushPlatform Script-------------------//
// Yeah...
#alias Object[24].PropertyValue	:	HUD.CurrentTimePeriod

sub ObjectDraw
	DrawSprite(0)
	DrawSprite(1)
	DrawSprite(2)
	DrawSprite(3)
end sub

sub ObjectStartup
	LoadSpriteSheet("R2/Objects2.gif")

	TempValue0 = HUD.CurrentTimePeriod
	TempValue1 = 1
	TempValue0 *= 25
	TempValue1 += TempValue0 
	
	SpriteFrame(-16, -8, 32, 8, 203, 231)		// #0 - Connection Joint
	SpriteFrame(-3, -8, 8, 16, 236, 231)		// #1 - Chain
	SpriteFrame(-16, -8, 32, 8, 204, 240)		// #2 - Connection Joint
	SpriteFrame(-48, -12, 96, 24, 133, TempValue1)		// #3 - Platform

end sub